export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  refreshBtn: false,
  delBtn: false,
  editBtn: false,
  showClomnuBtn: false,
  searchSize: 'mini',
  labelWidth: '140',
  column: [
	{
      type: "input",
      label: "接口名称",
      prop: "apiName",
      search: true,
      rules: [
          { required: true, message: '接口名称不能为空', trigger: 'blur' },
          { min: 3, max: 25, message: '长度在 3 到 25 个字符', trigger: 'blur' }
      ]
    },
	{
      type: "input",
      label: "接口地址",
      prop: "apiUrl",
      search: true,
      rules: [
          { required: true, message: '接口地址不能为空', trigger: 'blur' },
          { min: 3, max: 100, message: '长度在 3 到 100 个字符', trigger: 'blur' }
      ]
    },
	{
      type: "input",
      label: "映射访问地址",
      prop: "requestUrl",
      rules: [
          { required: true, message: '映射访问地址不能为空', trigger: 'blur' },
          { min: 3, max: 100, message: '长度在 3 到 100 个字符', trigger: 'blur' }
      ]
    },
	{
      label: "服务名称",
      prop: "serviceName",
      search: true,
      type: 'select',
      dicUrl: '/api/servicelist',
      props:{
          label:'name',
          value:'name'
      },
      rules: [
          { required: true, message: '请选择服务名称', trigger: 'blur'}
      ]
    },
	{
      type: "select",
      label: "请求协议",
      prop: "method",
      dicData: [{
        label: 'GET',
        value: 'get'
      }, {
        label: 'POST',
        value: 'post'
      }, {
        label: 'PUT',
        value: 'put'
      }, {
        label: 'DELETE',
        value: 'delete'
      }],
      rules: [
          { required: true, message: '请选择请求协议', trigger: 'blur'}
      ]
    },
	{
      type: "select",
      label: "接口安全策略",
      prop: "status",
      value: '0',
      dicData: [{
          label: '授权访问',
          value: '0'
        }, {
          label: '公开访问',
          value: '1'
        }, {
          label: '关闭',
          value: '2'
        }],
        rules: [
            { required: true, message: '请选择接口安全策略', trigger: 'blur'}
        ]
    },
    {
        label: '创建时间',
        prop: 'createTime',
        type: 'datetime',
        format: 'yyyy-MM-dd HH:mm',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
        editDisplay: false,
        addDisplay: false,
        span: 24
    }]
}
